chrome.extension.onRequest.addListener(function (request, sender, sendResponse) {
	// request = {
	//     action : action
	//     data   : Object
	// }
	var data = request.data;
	switch (request.action) {
		case "getStorageData":
			// data = {
			//     key : key
			// }
			sendResponse(localStorage[data.key]);
			break;
		case "putStorageData":
			// data = {
			//     key   : key
			//     value : value
			// }
			localStorage[data.key] = data.value;
			break;
		case "getRequest":
			// data = {
			//     url  : url
			//     data : data
			// }
			$.get(data.url, data.data, sendResponse);
			break;
	}
});